package com.laysonx.demo;

import com.laysonx.data.police.annotation.EnableDataPolice;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.ImportResource;
import org.springframework.scheduling.annotation.EnableAsync;

@SpringBootApplication
//@ImportResource(locations= {"classpath:bean.xml"})
/** 开启数据验证 */
@EnableDataPolice(scanHelperPackages = "com.laysonx.demo.handler", pointcut = "execution(* com..*.api..*.*(..)) || execution(* com..*.service..*.*(..))  ")
public class DemoApplication {
    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class, args);
    }
}
